package ink.tsg.export.utils;

import cn.hutool.core.collection.LineIter;
import cn.hutool.core.io.resource.ResourceUtil;

import java.math.BigDecimal;

/**
 * @author geo_tsg
 * @version 1.0.0
 * @ClassName ReadFileByLineUtil.java
 * @Description
 * @createTime 2022-01-07
 */
public class ReadFileByLineUtil {
    public static void main(String[] args) {
        final LineIter lineIter = new LineIter(ResourceUtil.getUtf8Reader("E:\\工作文档\\场地污染\\ert\\Line35-（AGI带高程反演结果）.dat"));

        BigDecimal bd = new BigDecimal("aaaaaaa");
        System.out.println(Double.parseDouble(bd.toPlainString()));
//        for (String line : lineIter) {
//            if(!line.contains(",")){
//                String[] s = line.trim().split(" ");
//                List<Double> list = new ArrayList<>();
//                for (String s1 : s) {
//                    if(StrUtil.isNotBlank(s1)){
//                        BigDecimal bd = new BigDecimal(s1);
//                        list.add(Double.parseDouble(bd.toPlainString()));
//                    }
//                }
//                System.out.println(list);
//            }
//        }
    }
}
